home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / AppleEvents / Records / ConstAEMember.h < prev   
Text File  |  2000-06-23  |  715b  |  46 lines

  1. // ConstAEMember.h
  2.  
  3. #ifndef ConstAEMember_h
  4. #define ConstAEMember_h
  5.  
  6. #ifndef AEType_h
  7. #include "AEType.h"
  8. #endif
  9. #ifndef AEKey_h
  10. #include "AEKey.h"
  11. #endif
  12. #ifndef Data_h
  13. #include "Data.h"
  14. #endif
  15.  
  16. class AEStruct;
  17. class Buffer;
  18.  
  19. class ConstAEMember
  20.   {
  21.     private:
  22.         const AEStruct& record;
  23.         AEKey key;
  24.     
  25.     public:
  26.         ConstAEMember( const AEStruct& theRecord, AEKey theKey )
  27.           : record( theRecord ),
  28.              key( theKey )
  29.           {}
  30.         
  31.         const AEStruct& Record() const    { return record; }
  32.         AEKey Key() const                        { return key; }
  33.         
  34.         bool Exists() const;
  35.         
  36.         uint32 Length() const;
  37.         AEType Type() const;
  38.         
  39.         void operator>>( Data ) const;
  40.         void operator>>( Buffer& ) const;
  41.  
  42.         void Get( AEType, Data ) const;
  43.   };
  44.  
  45. #endif
  46.